package cn.com.codingce.student.service.impl;

import cn.com.codingce.student.dao.ITeacherDao;
import cn.com.codingce.student.dao.impl.TeacherDaoImpl;
import cn.com.codingce.student.entity.Login;
import cn.com.codingce.student.service.ITeacherService;

import java.util.List;


public class TeacherServiceImpl implements ITeacherService {


	ITeacherDao tea = new TeacherDaoImpl();

	@Override
	public int login(Login login) {
		
		return tea.login(login);
	}

	@Override
	public int getTotalCount() {
		
		return tea.getTotalCount();
	}

	@Override
	public List<Login> queryAllTeachers() {
		
		return tea.queryAllTeachers();
	}

	@Override
	public Login queryLoginById(int id) {
		
		return tea.queryLoginById(id);
	}

	@Override
	public boolean updateTeacherById(int id, Login login) {
		
		return tea.updateTeacherById(id, login);
	}

	@Override
	public boolean addTeacher(Login teac) {
		
		return tea.addTeacher(teac);
	}

	@Override
	public boolean deleteTeacherById(int id) {
		// TODO Auto-generated method stub
		return tea.deleteTeacherById(id);
	}

}
